<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ page isErrorPage="true" %>

<% 

   response.setHeader("Pragma", "no-cache"); 
   response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
   response.addHeader("Cache-Control", "post-check=0, pre-check=0" ); 
   response.setHeader("Expires", "0"); 
%>

<html>
<head>
<title>HOL Information/Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function onload(){	
	self.name="parentPage";
	if(parent != self)
	{
		if(parent.parent_frameset != null){
			parent.parent_frameset.rows="*,0%";	
		}
		if(parent.top_frameset != null){
			parent.top_frameset.rows="*,0%";	
		}
	}
}
</script>
</head>
<body onload="onload()">

<%@include file="CssInclude.jsp" %>
<jsp:include page="HOLHeader.jsp" />


	<tr>
		<!-- Start Contentbox -->
		<td valign="top" width="70%">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td valign="top" width="100%">
						<!-- Start Content -->
						<table align="center" bgcolor="#000000" border="0" cellPadding="0" cellSpacing="0" width="100%">
							<tr>
								<td>
									<table border="0" cellpadding="8" cellspacing="1" width="100%"  bgcolor="#000000">
										<tr bgcolor="#ffffff">
											<td bgcolor="#ffffff">
											<H1>Error page</H1>
											<!-- <table bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="1" width="100%">-- -->
											 <TABLE bgColor=#cccccc border=0 borderColor=#cccccc  cellPadding=5 cellSpacing=1 width="100%">
												<!-- Print context free messages first -->
												 <tr bgcolor = #ffffff>
												 <td class="text_bold" align="left">  	
														
												<%
													Exception appex = (Exception)session.getAttribute("AppException");
													
												if( (appex== null) ){ 	%>
												An error has occurred while processing your request. Our apologies for the inconvenience caused.<br/>
													Please report this to the <a class="actionLink" href="mailto:chris.atkinson@syrrx.com">Web Development Team</a>   with the details of the actions performed prior to encountering this error.<br/>											        
											        Thanks for your patience as we resolve this problem.
												
												
												<%} else {%>
												An exception has occured while processing your request.<br/>
												Root Cause :  
												
												<% 
													out.println(appex.toString()); 
													StackTraceElement[] st = appex.getStackTrace();
													for(int i=0;i<st.length;i++)
														out.println(st[i].toString());
											
												   }
												%>			
													 </td>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>	
<jsp:include page="HOLFooter.jsp" />

</BODY>
</HTML>

